{% extends "base.html" %}
{% block header %}
<script type="text/javascript" src="/static/js/date/WdatePicker.js"></script>
{% endblock %}
{% block menu %}
   {% include 'accident-menu.html' %}
{% endblock %}


{% block content %}
<div id="mon-tit">
    <div class="left">暴风事故中心 >> 事故修改</div>
</div>
    <div class="clr"></div>
    <hr>
    <h3 class='tit'>修改事故记录</h3>
    {% if errors %}
        <ul>
            {% for error in errors %}
            <li>{{ error }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    <table width="100%">
		<form name="form1" method="post" action="/accident/modify/" >
            <div class="form-row">
			事故概要：&nbsp;&nbsp;<input type="text" name="description" value="{{ alst.description }}">&nbsp;&nbsp;&nbsp;&nbsp;[简单描述下事故]</br></br>
			事故原因：&nbsp;&nbsp;<input type="text" name="reason" value="{{ alst.reason }}">&nbsp;&nbsp;&nbsp;&nbsp;[事故产生的原因。。。]</br></br>
			事故处理过程：</br></br>
			<Textarea name="process" rows="8" cols="50">{{ alst.process }}
			</Textarea></br></br>
			事故经验教训：</br></br>
			<Textarea name="experience" rows="8" cols="50">{{ alst.experience }}
			</Textarea></br></br>
			事故负责人：&nbsp;&nbsp;<input type="text" name="duty" value="{{ alst.duty }}"></br></br>
			事故发生时间：&nbsp;&nbsp;<input type="text" name="abegintime"  value="{{ alst.abegintime }}"id="d233" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/></br></br>
			对应产品线：&nbsp;&nbsp;
			<select name="acpid" >
			    <option value ="{{ id }}" selected>>>>{{ name }}</option>
			    <option value ="">---</option>
			{% for l in plist %}
				<option value = "{{l.id}}">-{{ l.name }}-</option>
			{% endfor %}
        	</select>&nbsp;&nbsp;&nbsp;&nbsp;[选择事故发生的产品线，不属于任何请选择“暴风”]
			</br></br>
			事故等级：&nbsp;&nbsp;</br></br>
			<input name="alevel" type="radio" value="{{ alst.alevel }}" checked/> {{ alst.alevel }}[当前]</br></br>
			<input name="alevel" type="radio" value="普通"/> 普通&nbsp;&nbsp;
			<input name="alevel" type="radio" value="一级故障"/> 一级故障&nbsp;&nbsp;
			<input name="alevel" type="radio" value="二级故障"/> 二级故障&nbsp;&nbsp;
			<input name="alevel" type="radio" value="三级故障"/> 三级故障&nbsp;&nbsp;
			</br></br>
			事故类型：&nbsp;&nbsp;</br></br>
			<input name="atype" type="radio" value="{{ alst.atype }}" checked/> {{ alst.atype }}[当前]</br></br>
			<input name="atype" type="radio" value="人为"/> 人为&nbsp;&nbsp;
			<input name="atype" type="radio" value="网络"/> 网络&nbsp;&nbsp;
			<input name="atype" type="radio" value="硬件"/> 硬件&nbsp;&nbsp;
			<input name="atype" type="radio" value="产品策略"/> 产品策略&nbsp;&nbsp;
			</br></br>
			<input type="hidden" name="id" value="{{ alst.id }}">
			<input type="submit" value="提交事故">
			</div>
		</form>
   </table>
{% endblock %}
